import logging,pytest



def log():
    logging.basicConfig(
        filename='log.log',
        filemode='a+',
        level=logging.DEBUG,
        format='%(filename)s' '%(levelname)s' '%(asctime)s' '%(message)S'
    )
if __name__ == '__main__':
    pytest.main(['./test_wms.py','-s','--html=baogao.html'])